package com.aliwo.design.patterns.status.ext3;

/**
 * @author xuyayuan
 * @description TODO
 * @date 2021/9/18 16:32
 */
public class DemoTest {
    public static void main(String[] args) {
        Person person = new Person();

        person.setHour(7);
        person.doSomeThing();

        person.setHour(12);
        person.doSomeThing();

        person.setHour(18);
        person.doSomeThing();

        person.setHour(8);
        person.doSomeThing();

        person.setHour(7);
        person.doSomeThing();

        person.setHour(18);
        person.doSomeThing();
    }
}
